import http from '@/common/http/http'

//获取学校列表
export function getTsDepartApi(data){
	return http({
		url:'/smartPortal/portal/tsDepart',
		data
	})
}

//获取openid
export function getOpenidApi(data){
	return http({
		url:'/smartPortal/portal/getOpenid',
		data,
		method: 'GET',
	})
}

//验证学号
export function verifyMemberApi(data){
	return http({
		url:'/smartPortal/portal/verifyMember',
		data,
	})
}

//绑定账户接口
export function bindApi(data){
	return http({
		url:'/smartPortal/portal/bind',
		data,
		isOpenId: true
	})
}

//发送验证码接口
export function sendsmsApi(data){
	return http({
		url:'/smartPortal/portal/sendsms',
		data,
		isOpenId: true
	})
}

export function geth5MemberApi(data){
	return http({
		url:'/smartPortal/portal/geth5Member',
		data,
		isToken : true,
	})
}

export function getMemberApi(data){
	return http({
		url:'/smartPortal/portal/getMember',
		data,
		isOpenId: true
	})
}

export function pageMemberApi(data){
	return http({
		url:'/smartPortal/portal/pageMember',
		data,
	})
}

//更新会员联系方式信息（亲情号）
export function familyLoveinfoUpdateApi(data){
	return http({
		url:'/smartPortal/portal/familyLoveinfoUpdate',
		data,
		isOpenId: true,
		isToken : true,
	})
}

//获取会员联系方式信息（亲情号）
export function getFamilyLoveinfoApi(data){
	return http({
		url:`/smartPortal/portal/familyLoveinfo/${data}`,
		isToken : true,
	})
}

//变更绑定电话号码
export function updatePhoneApi(data){
	return http({
		url:`/smartPortal/portal/updatePhone`,
		isToken : true,
		isOpenId: true,
		data
	})
}

//解除绑定
export function unbindApi(data){
	return http({
		url:`/smartPortal/portal/unbind`,
		data,
		isToken : true,
		isOpenId : true,
	})
}

export function getfeatureImgApi(data){
	return http({
		url:`/smartPortal/portal/getfeatureImg`,
		data,
		isToken : true,
	})
}

export function reportLossOrUnhookApi(data){
	return http({
		url:`/smartPortal/portal/reportLossOrUnhook`,
		data,
		isToken : true,
	})
}

export function guardRecordListApi(data){
	return http({
		url:`/smartPortal/portal/guardRecordList`,
		data,
		isToken : true,
	})
}

export function cardtransListApi(data){
	return http({
		url:`/smartPortal/portal/cardtransList`,
		data,
		isToken : true,
	})
}

export function cardOperationlistApi(data){
	return http({
		url:`/smartPortal/portal/cardOperationlist`,
		data,
		isToken : true,
	})
}

export function reqRechargeApi(data){
	return http({
		url:`/smartPortal/portal/reqRecharge`,
		data,
		isToken : true,
		isOpenId : true
	})
}

//统计用户金额和最新消费时间
export function countAmtApi(data){
	return http({
		url:`/smartPortal/portal/countAmt`,
		data,
		isToken : true,
	})
}

export function h5countAmtApi(data){
	return http({
		url:`/smartPortal/portal/h5countAmt`,
		data,
		isToken : true,
	})
}
//请假管理（用户新增请假单）
export function eltMemberAsksSave(data){
	return http({
		url:`/smartPortal/portal/eltMemberAsksSave`,
		data,
		isToken : true,
	})
}

//请假管理（部门责任人查自己部门的人员请假数据）
export function queryAsksPage(data){
	return http({
		url:`/smartPortal/portal/queryAsksPage`,
		data,
		isToken : true,
	})
}

//请假管理（用户查看自己提交的请假记录）
export function memberAskslist(data){
	return http({
		url:`/smartPortal/portal/memberAskslist`,
		data,
		isToken : true,
	})
}

//请假管理（部門负责人批示请假单）
export function eltMemberAsksUpdate(data){
	return http({
		url:`/smartPortal/portal/eltMemberAsksUpdate`,
		data,
		isToken : true,
	})
}

//订餐管理-餐段信息查询
export function getMealtypeApi(data){
	return http({
		url:`/smartPortal/portal/getMealtype`,
		data,
		isToken : true,
	})
}



//订餐管理-根据就餐日期 查询订单信息/{date} yyyy-MM-dd
export function getTbAdvanceOrderApi(date,data){
	return http({
		url:`/smartPortal/portal/getTbAdvanceOrder/${date}`,
		isToken : true,
		data
	})
}

//订餐管理-根据就餐月份 查询订单信息/{date} yyyy-MM
export function getMonthTbAdvanceOrderApi(date,data){
	return http({
		url:`/smartPortal/portal/getMonthTbAdvanceOrder/${date}`,
		isToken : true,
		data
	})
}

//订餐管理-单餐别订单提交
export function singleSaveOrderApi(data){
	return http({
		url:`/smartPortal/portal/singleSaveOrder`,
		data,
		isToken : true,
	})
}

//订餐管理-多餐别订单提交
export function moreSaveOrderApi(data){
	return http({
		url:`/smartPortal/portal/moreSaveOrder`,
		data,
		isToken : true,
	})
}

//订餐管理-根据日期 查询发布菜单 /{date}
export function queryTbMerchMealScheduleApi(data){
	return http({
		url:`/smartPortal/portal/queryTbMerchMealSchedule`,
		isToken : true,
	})
}

//h5登陆
export function h5Login(data){
	return http({
		url:'/smartPortal/portal/login',
		data,
	})
}

//二维码消费
export function getQrcodeApi(data){
	return http({
		url:'/smartPortal/portal/getQrcode',
		data,
		isToken : true,
	})
}

//商家列表
export function queryMerchApi(data){
	return http({
		url:'/smartPortal/portal/queryMerch',
		data,
		isToken : true,
	})
}

//H5pay
export function h5AliRechargeApi(data){
	return http({
		url:'/smartPortal/portal/h5AliRecharge',
		data,
		isToken : true,
	})
}

//提交h5
export function h5SubOrderApi(data){
	return http({
		url:'/smartPortal/portal/h5SubOrder',
		data,
		isToken : true,
	})
}

//修改密码
export function updatePawApi(data){
	return http({
		url:'/smartPortal/portal/updatePaw',
		data,
		isToken : true,
	})
}

//退出登陆
export function exitLoginApi(data){
	return http({
		url:'/smartPortal/portal/exitLogin',
		data,
		isToken : true,
	})
}

//检查有效期
export function getDhLicenseApi(data){
	return http({
		url:'/smartPortal/portal/getDhLicense',
		data,
		isToken : true,
	})
}

//微信h5支付
export function h5WxRechargeApi(data){
	return http({
		url:'/smartPortal/portal/h5WxRecharge',
		data,
		isToken : true,
	})
}





